/**
 * 三种水流
 */
Water = cc.Sprite.extend({
	point:null,
	ctor:function (parent) {
		this._super();
		parent.addChild(this, 1000);
		this.init();
	},
	flowLeft:function(p,view,pos,time){
		var flowLeft = new cc.Sprite("#flow_left.png");
		flowLeft.setAnchorPoint(1, 1);
		flowLeft.setScale(0);
		flowLeft.setRotation(view);
		flowLeft.setPosition(pos);
		this.addChild(flowLeft);
		var seq = cc.sequence(cc.scaleTo(0.5,0.9),cc.delayTime(time),cc.scaleTo(0.2,0));
		flowLeft.runAction(seq);
	},
	flowRight:function(p,view,pos,time){
		var flowRight = new cc.Sprite("#flow_right.png");
		flowRight.setAnchorPoint(1, 1);
		flowRight.setScale(0);
		flowRight.setRotation(view);
		flowRight.setPosition(pos);
		p.addChild(flowRight);
		var seq = cc.sequence(cc.scaleTo(0.5,0.9),cc.delayTime(time),cc.scaleTo(0.2,0));
		flowRight.runAction(seq);
	},
	flowDown:function(pos,time){
		var flowDown = new cc.Sprite("#flow_down.png");
		flowDown.setAnchorPoint(1, 1);
		flowDown.setScale(0);
		flowDown.setPosition(pos);
		this.addChild(flowDown);
		var seq = cc.sequence(cc.scaleTo(0.5,0.6),cc.delayTime(time),cc.scaleTo(0.2,0));
		flowDown.runAction(seq);
	},
	
})